package com.example.safehome;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

public class System extends LitePalSupport {

    // 用户名
    @Column(index = true, unique = true, defaultValue = "unknown")
    private String hostName;

    // 密码
    private String hostPassword;

    // 电话号码
    private String phoneNumber;

    // 系统状态
    private boolean systemStatus;

    // 报警电话
    private String emergencyNumber;

    // 火警电话
    private static String fireCall = "119";

    // 用户尝试登录的次数
    private int numberTries;

    // 检测到警情的反应时间
    private static double delayTime = 1.0;

    // 是否有警情
    private boolean isAlarm;

    public String getHostName() {
        return this.hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getHostPassword() {
        return this.hostPassword;
    }

    public void setHostPassword(String hostPassword) {
        this.hostPassword = hostPassword;
    }

    public String getPhoneNumber() {
        return this.phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public boolean getSystemStatus() {
        return systemStatus;
    }

    public void setSystemStatus(boolean systemStatus) {
        this.systemStatus = systemStatus;
    }

    public String getEmergencyNumber() {
        return this.emergencyNumber;
    }

    public void setEmergencyNumber(String emergencyNumber) {
        this.emergencyNumber = emergencyNumber;
    }

    public String getFireCall() {
        return this.fireCall;
    }

    public void setFireCall(String fireCall) {
        this.fireCall = fireCall;
    }

    public int getNumberTries() {
        return this.numberTries;
    }

    public void setNumberTries(int numberTries) {
        this.numberTries = numberTries;
    }

    public double getDelayTime() {
        return this.delayTime;
    }

    public void setDelayTime(double delayTime) {
        this.delayTime = delayTime;
    }

    public boolean getIsAlarm() {
        return this.isAlarm;
    }

    public void setIsAlarm(boolean isAlarm) {
        this.isAlarm = isAlarm;
    }
}
